/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author User
 */
import org.jdesktop.http.Response;

import org.jdesktop.http.Session;

import org.jdesktop.http.State;



public class GetXmlHttp{


    public static void main(String[] args) {

        getResponse();

    }

    public static void getResponse()
    {

        final Session session = new Session();

        try {
            String url="http://10.1.108.13:3060/skyrise/reports/RC000007RP.jsp?unfold=0&active=0&emp=0&empb=0&strcl=0&excel=0&flag=1&branch=*&level=B&links=0&statname=RC000007RP.jsp&bank=PB&ru=*&fl=*&brnm=*&tobo=0&groupf=*&bus=4&project=F&cardtype=00&ccy=ALL&platform=0&cobrand=6&repay=0&sort=2&basis=0&periods=0&activetobo=on&excludedMainOffice=on&ldapfromsite=dn120188tpj&directlink=1&isxml=1&day1=30&month1=12&year1=2013&day2=30&month2=12&year2=2013";
            final Response res=session.get(url);
            boolean notDone=true;
            do
            {
                System.out.print(session.getState().toString());

                if(session.getState()==State.DONE)
                {
                    String xml=res.toString();
                    System.out.println(xml);
                    notDone=false;


                }

            }while(notDone);

        } catch (Exception e1) {

            e1.printStackTrace();
        }


    }

}
